package com.ibbt.musicplayer.server.services;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.ibbt.musicplayer.client.service_interfaces.RadioStationService;
import com.ibbt.musicplayer.model.Radio;

public class RadioStationServiceImpl extends RemoteServiceServlet implements RadioStationService {

	@Override
	public List<Radio> getRadioStations() {
//		Session session = HibernateUtil.getSessionFactory().getCurrentSession();
//		session.beginTransaction();
//		List list = session.createQuery("from Radio").list();
//		List<Radio> stations = new ArrayList<Radio>(list);
//		session.getTransaction().commit();
//
//		return stations;
		return null;
	}

}
